import { createRouter, createWebHistory } from 'vue-router'
export const routes = [
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home/Index.vue')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('@/views/about/Index.vue')
  },
  {
    path: '/page1',
    name: 'Page1',
    component: () => import('@/views/page1/Index.vue')
  },
  {
    path: '/page2',
    name: 'Page2',
    component: () => import('@/views/page2/Index.vue')
  },
  {
    path: '/page3',
    name: 'Page3',
    component: () => import('@/views/page3/Index.vue')
  }
]
export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    ...routes
  ]
})
